import request from '@/utils/request'

// 园参列表
export function getPlantingList(params: any) {
    return request.get({ url: '/plant.plant/lists', params }, { ignoreCancelToken: true })
}

// 园参详情
export function getPlantingDetail(params: any) {
    return request.get({ url: '/plant.plant/detail', params })
}

// 园参编辑
export function plantingEdit(params: any) {
    return request.post({ url: '/plant.plant/edit', params })
}

// 园参调整
export function plantingAdjustMoney(params: any) {
    return request.post({ url: '/plant.plant/adjustMoney', params })
}
// 园参二维码图片列表
export function getPlantingQrcodeLists(params: any) {
    return request.get({ url: '/plant.plant/qrcodeLists', params })
}

export function getMain1List(params: any) {
    return request.get({ url: '/user.user/lists1', params })
}
export function getMain2List(params: any) {
    return request.get({ url: '/user.user/lists2', params })
}

export function getMain3List(params: any) {
    return request.get({ url: '/user.user/lists3', params })
}

export function getPlantingArea(params: any) {
    return request.get({ url: '/plant.plant/getTotals', params })
}

export function getTotals1(params: any) {
    return request.get({ url: '/user.user/getTotals1', params })
}
export function getTotals2(params: any) {
    return request.get({ url: '/user.user/getTotals2', params })
}
export function getTotals3(params: any) {
    return request.get({ url: '/user.user/getTotals3', params })
}